package com.hcc.gateway.test.http;

import com.hcc.gateway.test.domain.RestResp;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * HttpTestController
 *
 * @author hushengjun
 * @date 2022/1/23
 */
@RestController
@RequestMapping("/http")
public class HttpTestController {

    @GetMapping("/get/{name}")
    public RestResp<String> getTest(@PathVariable("name") String name) {
        return RestResp.success("hello " + name);
    }

}
